package com.burger.service;

import com.burger.domain.User;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface LoginService {
    /**
     * 登录
     * @param user
     * @return
     */
    public boolean login(User user);

    /**
     * 注册
     * @param user
     * @return
     */
    public boolean register(User user);

    /**
     * 查询全部人员
     * @return
     */
    public List<User> findAll();

    /**
     * 按名字查询
     * @param name
     * @return
     */
    public User findByName(String name);
}
